<h2 style="margin-top:30px;"><?php echo __('Leave a comment') ?></h2>
<?php use_helper('Validation') ?>
<?php echo form_tag('remarks/saveComment', array(
'id'        => 'sf_admin_edit_form',
'name'      => 'sf_admin_edit_form',
'multipart' => true,
)) ?>

<?php if( $sf_flash->has('success') ): ?>
	<div class="save-ok" style="background-color: rgb(115, 182, 90);"><h3><?php echo __($sf_flash->get('success')) ?></h3></div>
<?php endif; ?>

<?php if( $sf_request->hasErrors() ): ?>
	<div style="background-color: #ED3838;"><h3><?php echo __('form has errors') ?></h3></div><br /><br />
<?php endif; ?>

<?php echo __('* mandatory fields') ?>
<?php echo input_hidden_tag('objId', $objId);?>
<table>
	<tr>
		<td valign="top"><?php echo __('Name:'); ?> *</td>
		<td valign="top"><?php echo input_tag('userName', $sf_user->getAttribute('userName')); ?><br /><br /></td>
	</tr>
<!-- 	<tr>
		<td valign="top"><?php echo __('Surname:'); ?></td>
		<td valign="top"><?php echo input_tag('userSurname', '');?><br /><br /></td>
	</tr> -->
	<tr>
		<td valign="top"><?php echo __('E-mail:'); ?></td>
		<td valign="top"><?php echo input_tag('userEmail', ''); ?><br /><br /></td>
	</tr>
	<tr>
		<td valign="top"><?php echo __('Text:'); ?> *</td>
		<td valign="top"><?php echo textarea_tag('text', '', 'rich=true size=30x10 tinymce_options=language:"en",theme:"advanced",theme_advanced_buttons1:"bold,italic,underline",theme_advanced_buttons2:"",theme_advanced_buttons3:"",theme_advanced_path:false,theme_advanced_path_location:"none"');?><br /></td>
	</tr>
	<tr>
		<td valign="top">
			<span class="sec"><?php echo __('url') ?></span>
		</td>
		<td valign="top">
			<?php echo input_tag('userUrl', '', array('class' => 'sec')) ?>
		</td>
	</tr>
	<tr>
		<td valign="top"></td>
		<td valign="top"><?php echo submit_tag(__('say')); ?></td>
	</tr>
</table>

</form> 
